import { defineStore } from 'pinia'

interface ICategory{

    ShopManageList:Array<any>
}

const ManageStore=defineStore("ManageShop",{

    state: ():ICategory =>{
        return{

            ShopManageList:[]
        }
    },
    getters: {
        getShopManageList(): Array<any>{
            
            return[...this.ShopManageList];
            

        }
    },
    actions: {
        setShopManageList(value: Array<any>){
            this.ShopManageList=value
            console.log("pinia",this.ShopManageList);
            
        }
    }
})

export default ManageStore
